package com.hcc.unitTest.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 主播信息表
 * </p>
 *
 * @author admin
 * @since 2023-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("anchor")
public class Anchor extends Model<Anchor> {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 年龄
     */
    @TableField("age")
    private Integer age;

    /**
     * 性别 男/女
     */
    @TableField("gender")
    private String gender;

    /**
     * 入职时间
     */
    @TableField("hiredate")
    private LocalDateTime hiredate;

    /**
     * 主播状态：0在职 9离职
     */
    @TableField("status")
    private Integer status;

    @TableField("logic_delete")
    private Integer logicDelete;

    @TableField("modified_time")
    private LocalDateTime modifiedTime;

    @TableField("modifier")
    private Long modifier;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("creator")
    private Long creator;


    public static final String ID = "id";

    public static final String NICK_NAME = "nick_name";

    public static final String NAME = "name";

    public static final String AGE = "age";

    public static final String GENDER = "gender";

    public static final String HIREDATE = "hiredate";

    public static final String STATUS = "status";

    public static final String LOGIC_DELETE = "logic_delete";

    public static final String MODIFIED_TIME = "modified_time";

    public static final String MODIFIER = "modifier";

    public static final String CREATE_TIME = "create_time";

    public static final String CREATOR = "creator";

}
